package com.ant.storage.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author melon
 * @since 2024-01-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("car_inventory")
@ApiModel(value="CarInventory对象", description="")
public class CarInventory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "仓库id")
    @TableField("warehouse_id")
    private Integer warehouseId;

    @ApiModelProperty(value = "物品id")
    @TableField("commodity_id")
    private Integer commodityId;

    @ApiModelProperty(value = "库存数量")
    @TableField("goods_amount")
    private BigDecimal goodsAmount;

    @ApiModelProperty(value = "物品单价")
    @TableField("goods_price")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "入库人")
    @TableField("creator_by")
    private String creatorBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("creation_time")
    private Date creationTime;


    @TableField(exist = false)
    private Commodity commodity;
}
